package com.wangjiacai.utils.cos;

import com.qcloud.cos.model.ObjectMetadata;
import com.qcloud.cos.model.PutObjectRequest;
import com.qcloud.cos.model.PutObjectResult;

import java.io.File;
import java.io.InputStream;
import java.util.List;

public interface ObjectService {

    PutObjectResult putObject(String bucketName, String key, File file);

    PutObjectResult putObject(String bucketName, String key, InputStream input);

    void deleteObject(String bucketName, String key);

    PutObjectResult putObject(String key, File file);

    PutObjectResult putObject(String key, InputStream input);

    void deleteObject(String key);

    String getDefaultBucketName();

    void emptyBucket();

    void emptyBucket(String bucketName);

    void emptyBucketFilterSuffix(String suffix);

    void emptyBucketFilterSuffix(String bucketName,String suffix);
}
